import ClassifyVue from '@/pages/Classify.vue'
import ReallyVue from '@/pages/Really.vue'
import DiscoveryVue from '@/pages/Discovery.vue'
import MyVue from '@/pages/My.vue'
import SelectVue from '@/pages/Select.vue'
import HWalkVue from '@/pages/Hwalk.vue'
import HSelectVue from '@/pages/Hselect.vue'
import EnvironmentVue from '@/pages/Environment.vue'
import ZsevenVue from '@/pages/Zseven.vue'
import WsevenVue from '@/pages/Wseven.vue'
import WfiveVue from '@/pages/Wfive.vue'
import WefiveVue from '@/pages/Wefive.vue'
import WnineVue from '@/pages/Wnine.vue'
import Vue from 'vue'
import VueRouter from 'vue-router'
import RsearchVue from '@/pages/Rsearch.vue'
import Rhong from '@/pages/Rhong.vue'
import Rhua from '@/pages/Rhua.vue'
import Rpei from '@/pages/Rpei.vue'
import Cusually from '@/components/Cusually.vue'
// import Cphone from '@/components/Cphone.vue'
// import Cbook from '@/components/Cbook.vue'
import MessagesVue from '@/pages/Massages.vue'
import MessageIndex1Vue from '@/pages/MessageIndex1.vue'
import MessageIndex2Vue from '@/pages/MessageIndex2.vue'
import MessageIndex3Vue from '@/pages/MessageIndex3.vue'
import MessageIndex4Vue from '@/pages/MessageIndex4.vue'
import MessageIndex5Vue from '@/pages/MessageIndex5.vue'
import Login from '../pages/user/Login.vue'
import Dingdan from '../pages/user/Dingdan.vue'
import Daifukuan from '../pages/user/Daifukuan.vue'
import Daishouhuo from '../pages/user/Daishouhuo'
import Daipingjia from '../pages/user/Daipingjia'
import Lianxikefu from '../pages/user/Lianxikefu'
import Bugoubaozhang from '../pages/user/Bugoubaozhang'
import Woyaoweixiu from '../pages/user/Woyaoweixiu'
import Tuichudenglu from '../pages/user/Tuichudenglu'
import List from '../pages/views/List.vue'
import ListEdit from '../pages/views/ListEdit.vue'
import Zhifubangzhu from '../pages/user/Zhifubangzhu'
import Renzheng from '../pages/user/Renzheng'
import ProductVue from '../pages/Product.vue'
import Product2Vue from '../pages/Product2.vue'
import ZsevenShopVue from '@/pages/ZsevenShop.vue'
import WsevenShopVue from '@/pages/WsevenShop.vue'
import WnineShopVue from '@/pages/WnineShop.vue'
import WfiveShopVue from '@/pages/WfiveShop.vue'
import WefiveShopVue from '@/pages/WefiveShop.vue'
import Pay from '../pages/pay.vue'
import module from '@/pages/shengtaizhoubian/module.vue'
import itemdetail from '@/pages/shengtaizhoubian/itemdetail.vue'
import wuzhelist from '@/pages/shengtaizhoubian/wuzhelist.vue'
import LTiaoZhuan11Vue from '@/pages/L-tiaozhuan1-1.vue'
import LTiaoZhuan12Vue from '@/pages/L-tiaozhuan1-2.vue'
import LTiaoZhuan13Vue from '@/pages/L-tiaozhuan1-3.vue'
import LTiaoZhuan21Vue from '@/pages/L-tiaozhuan2-1.vue'
import LTiaoZhuan22Vue from '@/pages/L-tiaozhuan2-2.vue'
import LTiaoZhuan23Vue from '@/pages/L-tiaozhuan2-3.vue'
import LTiaoZhuan17Vue from '@/pages/L-tiaozhuan1-7.vue'
import LTiaoZhuan14Vue from '@/pages/L-tiaozhuan1-4.vue'
import LTiaoZhuan15Vue from '@/pages/L-tiaozhuan1-5.vue'
import LTiaoZhuan16Vue from '@/pages/L-tiaozhuan1-6.vue'
import LTiaoZhuan18Vue from '@/pages/L-tiaozhuan1-8.vue'
import huaweidongtaiVue from '@/pages/huaweidongtai.vue'
import goods1Vue from '@/pages/discoveryshop/goods1.vue'
import goods2Vue from '@/pages/discoveryshop/goods2.vue'
import goods3Vue from '@/pages/discoveryshop/goods3.vue'
import goods4Vue from '@/pages/discoveryshop/goods4.vue'
import goods5Vue from '@/pages/discoveryshop/goods5.vue'
import goods6Vue from '@/pages/discoveryshop/goods6.vue'
import Register from '../pages/user/Register.vue'
import huabeiguizheVue from '@/pages/user/Huabeiguizhe.vue'

Vue.use(VueRouter)

const routes = [
  { path: '/', redirect: '/real', name: 'real', meta: { title: '首页' } },
  { path: '/real', component: ReallyVue, meta: { title: '首页' } },
  { path: '/classify', component: ClassifyVue, meta: { title: '分类' } },
  { path: '/discovery', component: DiscoveryVue, meta: { title: '发现' } },
  { path: '/My', component: MyVue, meta: { title: '我的' } },
  { path: '/select', component: SelectVue, meta: { title: '购物车' } },
  { path: '/user/login', component: Login, meta: { title: '登录' } },
  { path: '/user/register', component: Register, meta: { title: '注册' } },
  { path: '/user/dingdan', component: Dingdan, meta: { title: '我的订单' } },
  { path: '/user/daifukuan', component: Daifukuan, meta: { title: '待付款' } },
  { path: '/user/daishouhuo', component: Daishouhuo, meta: { title: '待收货' } },
  { path: '/user/daipingjia', component: Daipingjia, meta: { title: '待评价' } },
  { path: '/user/lianxikefu', component: Lianxikefu, meta: { title: '联系客服' } },
  { path: '/user/bugoubaozhang', component: Bugoubaozhang, meta: { title: '补购保障' } },
  { path: '/user/woyaoweixiu', component: Woyaoweixiu, meta: { title: '我要维修' } },
  { path: '/user/tuichudenglu', component: Tuichudenglu, meta: { title: '退出登录' } },
  { path: '/views/list', component: List, meta: { title: '地址列表' } },
  { path: '/views/list/add', component: ListEdit, meta: { title: '新增地址' } },
  { path: '/user/zhifubangzhu', component: Zhifubangzhu, meta: { title: '支付帮助' } },
  { path: '/user/renzheng', component: Renzheng, meta: { title: '认证' } },
  { path: '/my', component: MyVue, meta: { title: '我的' } },
  { path: '/select', component: SelectVue, meta: { title: '购物车' } },
  { path: '/h_walk', component: HWalkVue, meta: { title: '鸿蒙智行' } },
  { path: '/h_select', component: HSelectVue, meta: { title: '华为智选' } },
  { path: '/environment', component: EnvironmentVue, meta: { title: '生态周边' } },
  { path: '/r_search', component: RsearchVue, meta: { title: '搜索框' } },
  { path: '/rhong', component: Rhong, meta: { title: '鸿蒙智行1' } },
  { path: '/rhua', component: Rhua, meta: { title: '华为手机' } },
  { path: '/rpei', component: Rpei, meta: { title: '配件中心' } },
  { path: '/cusually', component: Cusually, meta: { title: '常用设备' } },
  // { path: '/cphone', component: Cphone, meta: { title: '手机' } },
  // { path: '/cbook', component: Cbook, meta: { title: '笔记本' } }
  { path: '/Product2', component:Product2Vue, meta: { title: 'nova11se' } },
  { path: '/Product', component: ProductVue, meta: { title: '非凡大师' } },
  { path: '/z_seven', component: ZsevenVue, meta: { title: '智界S7' } },
  { path: '/w_seven', component: WsevenVue, meta: { title: '问界M7' } },
  { path: '/w_five', component: WfiveVue, meta: { title: '问界M5' } },
  { path: '/w_e_five', component: WefiveVue, meta: { title: '问界M5电' } },
  { path: '/w_nine', component: WnineVue, meta: { title: '问界M9' } },
  { path: '/messages', component: MessagesVue, meta: { title: '消息' } },
  { path: '/messages/index1', component: MessageIndex1Vue, meta: { title: '消息1' } },
  { path: '/messages/index2', component: MessageIndex2Vue, meta: { title: '消息2' } },
  { path: '/messages/index3', component: MessageIndex3Vue, meta: { title: '消息3' } },
  { path: '/messages/index4', component: MessageIndex4Vue, meta: { title: '消息4' } },
  { path: '/messages/index5', component: MessageIndex5Vue, meta: { title: '消息5' } },
  { path: '/z_seven/shop', component: ZsevenShopVue, meta: { title: '智界S7购物页面' } },
  { path: '/w_seven/shop', component: WsevenShopVue, meta: { title: '问界M7购物页面' } },
  { path: '/w_nine/shop', component: WnineShopVue, meta: { title: '问界M9购物页面' } },
  { path: '/w_five/shop', component: WfiveShopVue, meta: { title: '问界M5购物页面' } },
  { path: '/w_e_five/shop', component: WefiveShopVue, meta: { title: '问界M5电购物页面' } },
  { path: '/pay', name:'pay', component: Pay, meta: { title: '结算' } },
  { path: '/h_walk/l-tiaozhuan1-1', component: LTiaoZhuan11Vue, meta: { title: '跳转1-1' } },
  { path: '/h_walk/l-tiaozhuan1-2', component: LTiaoZhuan12Vue, meta: { title: '跳转1-2' } },
  { path: '/h_walk/l-tiaozhuan1-3', component: LTiaoZhuan13Vue, meta: { title: '跳转1-3'}},
  { path: '/h_walk/l-tiaozhuan1-7', component: LTiaoZhuan17Vue, meta: { title: '跳转1-7'}},
  { path: '/h_walk/l-tiaozhuan1-4', component: LTiaoZhuan14Vue, meta: { title: '跳转1-4'}},
  { path: '/h_walk/l-tiaozhuan1-5', component: LTiaoZhuan15Vue, meta: { title: '跳转1-5'}},
  { path: '/h_walk/l-tiaozhuan1-6', component: LTiaoZhuan16Vue, meta: { title: '跳转1-6'}},
  { path: '/h_walk/l-tiaozhuan1-8', component: LTiaoZhuan18Vue, meta: { title: '跳转1-8'}},
  { path: '/h_walk/l-tiaozhuan2-1', component: LTiaoZhuan21Vue, meta: { title: '跳转2-1' } },
  { path: '/h_walk/l-tiaozhuan2-2', component: LTiaoZhuan22Vue, meta: { title: '跳转2-2'}},
  { path: '/h_walk/l-tiaozhuan2-3', component: LTiaoZhuan23Vue, meta: { title: '跳转2-3'}},
  { path: '/stzb/module', component: module },
  { path: '/itemdetail/:name/:src/:price', name: 'itemdetail', component: itemdetail },
  { path: '/stzb/wuzhelist', component: wuzhelist },
  { path: '/h_walk/l-tiaozhuan1-1', component: LTiaoZhuan11Vue, meta: { title: '跳转1-1' } },
  { path: '/h_walk/l-tiaozhuan1-2', component: LTiaoZhuan12Vue, meta: { title: '跳转1-2' } },
  { path: '/h_walk/l-tiaozhuan2-1', component: LTiaoZhuan21Vue, meta: { title: '跳转2-1' } },
  { path: '/huaweidongtai', component: huaweidongtaiVue },
  { path: '/goods1', component: goods1Vue },
  { path: '/goods2', component: goods2Vue },
  { path: '/goods3', component: goods3Vue },
  { path: '/goods4', component: goods4Vue },
  { path: '/goods5', component: goods5Vue },
  { path: '/goods6', component: goods6Vue },
  { path: '/user/rules', component: huabeiguizheVue }
]

const router = new VueRouter({
  routes,
  linkActiveClass: 'mui-active'
})

export default router
